﻿using System.Configuration;

namespace DotNETStack.Core.Configuration
{
    public class DotNETStackConfigurationSection : ConfigurationSection, IDotNETStackConfiguration
    {
        [ConfigurationProperty("dataProvider")]
        public DataProviderConfigurationElement DataProviderInternal
        {
            get { return (DataProviderConfigurationElement) this["dataProvider"]; }
            set { this["dataProvider"] = value; }
        }

        #region IDotNETStackConfiguration Members

        public IDataProviderConfiguration DataProvider
        {
            get { return DataProviderInternal; }
        }

        #endregion
    }
}